<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\GrabOrder
 *
 * @property int $id
 * @property string $order_no
 * @property int $user_id
 * @property string $user_12306
 * @property string $pass_12306 12306密码
 * @property string $from_station 上车站
 * @property string $from_station_telecode 上车站代码
 * @property string $to_station 下车站
 * @property string $to_station_telecode 下车站代码
 * @property string $start_train_date 开车日期
 * @property string $station_code 车次号
 * @property string|null $passengers 乘客信息
 * @property string $seat_type_name 座位类型
 * @property string $mobile
 * @property string $source 订单来源
 * @property int $order_status 订单来源
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereFromStation($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereFromStationTelecode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereMobile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereOrderNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereOrderStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder wherePass12306($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder wherePassengers($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereSeatTypeName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereSource($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereStartTrainDate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereStationCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereToStation($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereToStationTelecode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereUser12306($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\GrabOrder whereUserId($value)
 * @mixin \Eloquent
 */
class GrabOrder extends Model
{
    //
    protected $table = 'grab_order';

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'user_id');
    }

}
